﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void btnAdd_Click(object sender, EventArgs e)
    {
        AddService.AddWebService service = new AddService.AddWebService();

        int x;
        int y;

        x = Convert.ToInt32(txtX.Text.Trim());
        y = Convert.ToInt32(txtY.Text.Trim());

        lblResult.Text = service.Add(x, y).ToString();
    }
}